package org.spindle.soasuite.datasource.internal.core;

import org.hibernate.Query;
import org.hibernate.Session;
import org.spindle.soasuite.datasource.helper.HSQLDBHibernateUtil;
import org.spindle.soasuite.datasource.helper.HibernateUtil;

import java.util.Map;

class ADatasourceDAO {

    private Boolean transactionActive = false;

    protected Session getSession() {
        return HibernateUtil.currentSession();
    }

    protected Query prepareQuery(String query) {
        return getSession().createQuery(query);
    }

}
